# Copyright 2007 Boris Dusek
#
# This file is part of grapy.
#
# Grapy is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# Grapy is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Grapy.  If not, see <http://www.gnu.org/licenses/>.

import sys

from AdjListGraph import AdjListGraph
from AdjMatrixGraph import AdjMatrixGraph

if __name__ == "__main__":
    f = open (sys.argv[1], "r")
    g = AdjMatrixGraph(False, True)
    g.init_from_stream (f)
    print g.universal_sink()

    f.close()
